home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / tutorials / custEducation / opengl1 / lib / Makefile < prev    next >
Encoding:
Makefile  |  1996-11-11  |  1.5 KB  |  76 lines

  1. #! smake
  2. #
  3. # Copyright 1996, Silicon Graphics, Inc.
  4. #  All Rights Reserved.
  5. #
  6. # This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  7. # the contents of this file may not be disclosed to third parties, copied or
  8. # duplicated in any form, in whole or in part, without the prior written
  9. # permission of Silicon Graphics, Inc.
  10. #
  11. # RESTRICTED RIGHTS LEGEND:
  12. # Use, duplication or disclosure by the Government is subject to restrictions
  13. # as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  14. # and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  15. # successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  16. # rights reserved under the Copyright Laws of the United States.
  17. #
  18.  
  19. #
  20. #   Makefile for compiling OpenGL Programming library
  21. #
  22. include /usr/include/make/commondefs
  23.  
  24. TARGETS = liboglprog.a
  25.  
  26. TOPDIR ?= ../
  27. HEADERDIR = ${TOPDIR}/include
  28.  
  29. CFILES = \
  30.     axes.c \
  31.     error.c \
  32.     font.c \
  33.     misc.c \
  34.     shapes.c \
  35.     vect3d.c \
  36.     xform.c \
  37.     ${NULL}
  38.  
  39. LCINCS = -I${HEADERDIR}
  40. LCOPTS = -c
  41.  
  42. ARFLAGS = r
  43.  
  44. #
  45. #   To build a debug version of liboglprog.a, set OGLPROG_DEBUG to DEBUG in your
  46. #     environment
  47. OGLPROG_DEBUG ?= NO_DEBUG
  48.  
  49. #if ${OGLPROG_DEBUG} == "DEBUG"
  50. OPTIMIZER =
  51. LCOPTS     += -g -D${OGLPROG_DEBUG}
  52. #endif
  53.  
  54. .SUFFIXES:
  55. .SUFFIXES: .c .o
  56.  
  57. .c.o :
  58.     ${CC} ${CFLAGS} $<
  59.  
  60. #
  61. #   Start Dependencies
  62. #
  63.  
  64. default install:    ${TARGETS}
  65.  
  66. include ${COMMONRULES}
  67.  
  68. new:     clobber
  69.     @ make -f Makefile 
  70.  
  71. ${TARGETS}:    ${OBJECTS}
  72.     @ echo 'NOTE : Debug Level is ' ${OGLPROG_DEBUG}
  73.     ${AR} ${ARFLAGS} $@ ${OBJECTS}
  74.  
  75.